/**
 * @file       main.cpp
 * @brief      
 * @author     LiuJkun
 * @version    1.0.0
 */

/*********************************************************************
 *  LiuJikun   08/15/2010      Initial Version
 *********************************************************************/

#include	<stdlib.h>
#include    <stdio.h>
#include	"Singleton.h"

//----------------------------------------------------------------------
//  
//----------------------------------------------------------------------
class GlobalSetting : public Singleton<GlobalSetting> {
    friend class Singleton<GlobalSetting>;
    protected:
        GlobalSetting() {
            printf ( "initialize GlobalSetting.\n" );
        }
    public:
        void func() {
            printf ( "func\n" );
        }
};

class Impl {
    public :
        virtual void func1() = 0;
        virtual void func2() = 0;
        virtual void func3() = 0;
};

/**
 * @brief 
 */
int main ( int argc, char *argv[] )
{
    GlobalSetting::instance().func();
    GlobalSetting::instance().func();
    return EXIT_SUCCESS;
}				// ----------  end of function main  ----------

